#ifndef MYSVGWIDGET_H
#define MYSVGWIDGET_H

#include<QWidget>
#include<QSvgRenderer>
#include<QPainter>
#include<QPaintEvent>

class MySvgWidget:public QWidget
{
    Q_OBJECT
public:
    MySvgWidget(const QString& filepath,QWidget* parent = nullptr);
    ~MySvgWidget();
public:
    void paintEvent(QPaintEvent *event) override;
private:
    QSvgRenderer* render;
};

#endif
